package com.atguigu.gulimall.product.entity;

import com.atguigu.common.valid.AddGroup;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 品牌分类关联
 *
 * @author chenhaifu
 * @email 542704865@qq.com
 * @date 2021-03-14 09:43:33
 */
@Data
@TableName("pms_category_brand_relation")
public class CategoryBrandRelationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @Null(groups = AddGroup.class, message = "添加不需要id")
    private Long id;
    /**
     * 品牌id
     */
    @NotNull(groups = AddGroup.class, message = "品牌id不能为空")
    private Long brandId;
    /**
     * 分类id
     */
    @NotNull(groups = AddGroup.class, message = "分类id不能为空")
    private Long catelogId;
    /**
     *
     */
    private String brandName;
    /**
     *
     */
    private String catelogName;

}
